package Pojo::User;

use strict;
use warnings;

use Moose;
use Exporter qw(import);

our @EXPORT_OK = qw();


has 'id' => ( 	
		is	  => 'ro',
	  	isa	  => 'Int',
	  	default   => 1,
		writer	  => '_set_id',
	    );

has 'birth' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_birth',
);

has 'name' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_name',
);

has 'sex' => (
		is	=>  'ro',
		isa	=>  'Int',
		default =>  0,
		writer	=>  '_set_sex',
);

has 'avatar' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_avatar'
);

has 'email' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_email'
);

has 'role' => (
        is  =>  'ro',
        isa =>  'Int',
        default =>  1,
        writer  =>  '_set_role',
);

has 'password' => (
		is	=>  'ro',
		isa	=>  'Str',
		default =>  '',
		writer	=>  '_set_password'
);

no Moose;

1;
